package com.campus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.campus.pojos.domain.BillBoard;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Mapper
public interface BillboardMapper extends BaseMapper<BillBoard> {

    @Update("UPDATE client_billboard set content=#{content}")
    void update(String content);

    @Update("UPDATE client_billboard set `show` = #{show} where id < 1000 ")
    void setShow(Integer show);
}
